function preventBrowserScale() {
  document.getElementsByClassName("canvas")[0].addEventListener(
    "mousewheel",
    (event) => {
      if ((event.wheelDelta && event.ctrlKey) || event.detail) {
        if (event.wheelDelta > 0) {
          // 放大
        } else {
          // 缩小
        }
        // 阻止系统默认的缩放功能
        event.preventDefault();
      }
    },
    {
      capture: false,
      passive: false,
    }
  );
}